import { BroadCastCall } from "../../broadCast/BroadCastCall";
import { MessageBlock } from "../../../../../Framework/MQ/MessageBlock";
import { SSeqGuildGroup } from "../../../../../Message/Public/SSeqGuildGroup";
import { NetDispatcher } from "../../../../mvc/core/NetDispatcher";
import { ServerCommand } from "../../../mvc/ServerCommand";
//class GuildGroupInfoCommand
    
    export  class GuildGroupInfoCommand extends BroadCastCall
    {
        constructor(arg1: Object)
        {
            super(arg1);
            return;
        }

        public /* override */ call(arg1: MessageBlock): void
        {
            var loc2=null;
            var loc1=arg1.messageBase as SSeqGuildGroup;
            var loc3=0;
            var loc4=loc1.guildGroups;
            for(loc2 of loc4) 
            {
                _cache.guildElite.addGuildGroup(loc2);
            }
            NetDispatcher.dispatchCmd(ServerCommand.GuildGroup_PlayerChange, null);
            return;
        }
    }
